<template>
	<view class="page">
		<view class="zuishangcen">
			<text>营养菜谱</text>
		</view>
		<view class="sousuokuang">
			<img src="/static/img/fangdajing.png" alt="">
			<input type="text" placeholder="搜索营养食谱" class="sousuo" @tap="search">
		</view>
		<view class="datupian">
			<img src="/static/img/ceshi.png" alt="">
		</view>
		<view class="biaotione">
			<text>年龄阶段</text>
		</view>
		<view class="nav1">

			<view class="" @click="gotoList()"><text>6月龄</text></view>
			<view class=""><text>7月龄</text></view>
			<view class=""><text>8月龄</text></view>
			<view class=""><text>9月龄</text></view>
			<view class=""><text>10月龄</text></view>
			<view class=""><text>11月龄</text></view>
			<view class=""><text>12月龄</text></view>
			<view class=""><text>18月龄</text></view>
			<view class=""><text>24月龄</text></view>

		</view>
		<view class="biaotione">
			<text>生病菜谱</text>
		</view>
		<view class="nav1">
			<view class="" @tap="dishList"><text>发烧</text></view>
			<view class="" @tap="dishList"><text>发烧</text></view>
			<view class="" @tap="dishList"><text>感冒</text></view>
			<view class="" @tap="dishList"><text>发烧</text></view>
			<view class="" @tap="dishList"><text>腹泻</text></view>
			<view class="" @tap="dishList"><text>发烧</text></view>

		</view>
		<view class="biaotione">
			<text>食材分类</text>
		</view>
		<view class="nav1">
			<view class="" @tap="dishList"><text>蛋黄泥</text></view>
			<view class="" @tap="dishList"><text>蛋黄泥</text></view>
			<view class="" @tap="dishList"><text>蛋黄泥</text></view>


		</view>




	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {
			console.log("菜谱")

		},
		methods: {

			dishList() {
				uni.navigateTo({
					url: '/pages/dishList/dishList'
				})
			},
			search() {
				uni.navigateTo({
						url: '/pages/search/search',
					})
				
			},

			gotoList() {
				uni.navigateTo({
					url: "/pages/dishList/dishList"

				})
			}
		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
	}

	.zuishangcen {
		margin-top: 12%;
		width: 100%;
		height: 40px;
		border-bottom: 2px solid #e9e9e9;
		margin-bottom: 10px;

	}

	.zuishangcen text {
		margin-left: 5%;
		font-size: 27px;
		font-weight: bold;
		height: 30px;
		line-height: 30px;

	}

	.sousuokuang {
		margin-left: 10px;
		width: 90%;
		height: 35px;
		background: #ececec;
		border-radius: 40rpx;
		display: flex;
		margin: 0 20px 0 20px;
	}

	.sousuokuang image {
		display: inline-block;
		width: 35px;
		height: 35px;

	}

	.sousuo {
		height: 35px;
		display: inline-block;
		width: 100%;
		font-size: 15px;
	}

	.datupian {
		margin: 30rpx 23px 30rpx 23px;
		width: 89.8%;
		height: 250rpx;
		border-radius: 10px;
	}

	.datupian image {
		width: 100%;
		height: 100%;
		border-radius: 10px;
	}

	.biaotione {
		display: inline-block;
		width: 100%;
		height: 30px;
		line-height: 30px;
		font-size: 17px;
		text-align: center;
	}

	.nav1 {
		width: 90%;

		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		margin: 20px 30px 20px 30px;
		align-items: center;
		justify-content: space-around;

	}

	.nav1 view {

		width: 120px;
		height: 45px;
		text-align: center;
		background: #f0f1fd;
		border-radius: 5px;
		margin-bottom: 10px;

	}

	.nav1 text {
		width: 100px;
		height: 45px;
		line-height: 45px;
		color: #9795eb;

	}
</style>
